<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.amendment"></fs-grid-layout>

<div ng-show="vm.loanAmd.uMaturityDate == 'Y' || vm.loanAmd.uCustRef == 'Y' 
|| vm.loanAmd.uPrincAmt == 'Y' || vm.loanAmd.uAssetAmt == 'Y' 
|| vm.loanAmd.uPerform == 'Y'|| vm.loanAmd.uRepeatExtendFlag == 'Y'
|| vm.loanAmd.uRepeatExtendTenor == 'Y'">
<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.amdGeneralInfo"></fs-grid-layout>
<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.orgGeneralInfo"></fs-grid-layout>
</div>

<div ng-show="vm.loanAmd.uObligorCode == 'Y' || vm.loanAmd.uObligorRef == 'Y' || vm.loanAmd.uLiabAcctCode == 'Y'">
<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.amdObligor"></fs-grid-layout>
<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.orgObligor"></fs-grid-layout>
</div>

<div ng-show="vm.loanAmd.uBaseRate == 'Y' || vm.loanAmd.uSpreadRate == 'Y'
|| vm.loanAmd.uCofRate == 'Y' || vm.loanAmd.uInsRate == 'Y' || vm.loanAmd.uTaxRate == 'Y'">
<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.amdInterest"></fs-grid-layout>
<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.orgInterest"></fs-grid-layout>
</div>

<div ng-show="vm.loanAmd.uIntReview == 'Y'">
<fs-table fs-config="vm.amdIntSchdListGridOptions"></fs-table>
<fs-table fs-config="vm.orgIntSchdListGridOptions"></fs-table>
</div>

<div ng-show="vm.loanAmd.uPastdue == 'Y'">
<div class="panel-group ">
	<div  class="ng-pristine ng-untouched ng-valid ng-scope fsGroup ng-isolate-scope ng-not-empty">
		<div class="panel panel-default">
			<div ng-class="{'body-collapsed': isCollapsed}" class="panel-heading body-collapsed" style="cursor: pointer;" ng-click="isCollapsed = !isCollapsed;">  
			 <span class="ng-binding">{{"title.fgroup.amdpastdue" | translate}}</span>     
			 <i class="pull-right glyphicon glyphicon-chevron-right" ng-class="{'glyphicon-chevron-down': isCollapsed, 'glyphicon-chevron-right': !isCollapsed}" style=""></i>
			</div>
			<fs-table uib-collapse="!isCollapsed" fs-config="vm.amdPastdueListGridOptions"></fs-table>
		</div>
	</div>
</div>

<div class="panel-group ">
	<div  class="ng-pristine ng-untouched ng-valid ng-scope fsGroup ng-isolate-scope ng-not-empty">
		<div class="panel panel-default">
			<div ng-class="{'body-collapsed': isCollapsedOrgpastdue}" class="panel-heading body-collapsed" style="cursor: pointer;" ng-click="isCollapsedOrgpastdue = !isCollapsedOrgpastdue;">  
			 <span class="ng-binding">{{"title.fgroup.orgpastdue" | translate}}</span>     
			 <i class="pull-right glyphicon glyphicon-chevron-right" ng-class="{'glyphicon-chevron-down': isCollapsedOrgpastdue, 'glyphicon-chevron-right': !isCollapsedOrgpastdue}" style=""></i>
			</div>
			<fs-table uib-collapse="!isCollapsedOrgpastdue" fs-config="vm.orgPastdueListGridOptions"></fs-table>
		</div>
	</div>
</div>
</div>

<div ng-show="vm.loanAmd.uBill == 'Y'">
<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.amdBilling"></fs-grid-layout>
<fs-grid-layout ng-model="vm.loanAmd" fs-config="vm.layoutConfig.formConfigs.orgBilling"></fs-grid-layout>
</div>

